package design.b2_bridge.channel;

import design.b2_bridge.pay.IPayMode;

import java.math.BigDecimal;

public class WxPay extends Pay {

	public WxPay(IPayMode payMode) {
		super(payMode);
	}

	@Override
	public String transfer(String uid, String tradeId, BigDecimal amount) {
		boolean security = payMode.security(uid);
		if (!security) {
			System.out.println("微信转账失败");
			return "0001";
		}
		System.out.println("微信转账成功");
		return "0000";
	}
}
